package com.water.app;

import java.util.Map;

public class cartMoney {
    /*
    Key:保存商品id
    Value:保存已选商品总金额
     */
    private Map<Integer,Double> map;
    private double totalPrice;

    public cartMoney(Map<Integer, Double> map, double totalPrice) {
        this.map = map;
        this.totalPrice = totalPrice;
    }

    @Override
    public String toString() {
        return "cartMoney{" +
                "map=" + map +
                ", totalPrice=" + totalPrice +
                '}';
    }

    public Map<Integer, Double> getList() {
        return map;
    }

    public void setList(Map<Integer, Double> map) {
        this.map = map;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }
}
